{% extends 'base.html' %}

{% block title %}{{rep}} | {{block.super}}{% endblock %}

{% block bodytag %}<body id="rep_detail">{% endblock %}

{% block heading %}
<h1 id="logo"><a href="/"><img src="{{MEDIA_URL}}img/logos/replogo_m.gif" alt="RepSheet" /></a></h1>
{% endblock %}

{% block content %}

    <h1>{{rep}}</a></h1>

    <div id="extra_info">
    <ul>
    <li><h2>Something</h2>
    <div id="som_1" style="width:340px;">
    <p>Info</p>
    <p>Info2</p>
    </div></li>

    <li><h2>Something2</h2>
    <div id="som_2" style="width:340px;">
    <p>Info</p>
    <p>Info2</p>
    </div></li>

    <li><h2>Something3</h2>
    <div id="som_3" style="width:340px;">
    <p>info</p>
    <p>Info2</p>
    </div></li>

    </ul>
    </div>

    <div id="left_col">
    <div id="who">
    <p id="bio_pic">
    <img src="http://www.freebase.com/api/trans/image_thumb/guid/{{bio.guid|slice:"1:"}}?maxwidth=200" />
    <p id="bio_desc">
    <ul>
    <li>{{bio.date_of_birth}}</li>
    <li>{{bio.place_of_birth}}</li>
    <li>{% for p in bio.profession %}{{p}}, {% endfor %}</li>
    <li><a href="http://en.wikipedia.org/w/wiki.phtml?curid={{bio.key.0}}"
    >Wikipedia Article</a></li>
    </ul>
    </p>
    </div>

    {% if news %}
    <div id="news">
    <h1>{{rep|title}} in the News</h1> 
    <!--p id="hooks">
    <a id="hook_email" href="sub/">E-mail Alerts</a>
    <a id="hook_feed" href="rss/">RSS Feed for Your Reps</a> 
    </p-->
    <h2>{{news|length}} articles found this week</h2>
    <ul>
    {% for n in news %}
    <li><h3><a href="{{n.link|safe}}">{{n.title|safe}}</a></h3>
    <p><span class="pub">{{n.publication}}</span> - {{n.date_modified|date:"N j, Y P"}}</p> 
    <p class="summary">{{n.summary|safe}}</p></li>
    {% endfor %}
    </ul>

    <div id="ads">
    {% if not debug %}
    <script type="text/javascript"><!--
    google_ad_client = "pub-2451239973624610";
    /* RepSheet Scraper */
    google_ad_slot = "6443035431";
    google_ad_width = 160;
    google_ad_height = 600;
    //-->
    </script>
    <script type="text/javascript"
    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>
    {% endif %}
    </div>

    </div>
    {% endif %}

    </div><!-- close left_col -->

<div class="footi">
<form action="{% url repsheet_lookup %}" id="search_form_foot">
<div>
{{form}}
</div>
<input type="submit" value="Go" id="submit" />
</form>
</div>

{% endblock %}
